/*
* BinaryExpression.cpp
*
*  Created on: 05/05/2010
*      Author: rodolfo
*/

#include "BinaryExpression.h"

BinaryExpression::BinaryExpression() :
        Expression ( binExp )
{

}

BinaryExpression::BinaryExpression ( Expression *lhs, BinaryOperators op, Expression *rhs ) :
        lhs ( lhs ), op ( op ), rhs ( rhs ), Expression ( binExp )
{
}

BinaryExpression::~BinaryExpression()
{
	if( lhs != 0 )
		delete lhs;
	if ( rhs != 0 )
	    delete rhs;
}
